package cn.dugcrs.user.mapper;

import cn.dugcrs.user.domain.Logininfo;
import cn.dugcrs.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gubcog
 * @since 2022-05-08
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    /**
     * 根据用户名、手机号或者邮箱查找
     * @param username
     * @param type
     * @return
     */
    Logininfo loadByUsernameAndType(@Param("username") String username,@Param("type")  Integer type);

}
